<h3>Twitter.GetHomeTimeline() Method</h3>

<p>Use the following code to retrieve the most recent statuses (including retweets) posted by the authenticating user and the user's they follow. See the Authentication Flow for instructions on how to obtain the user's Access Token and Secret.</p>

<pre class="codePre">
@@ {
    <strong>var timeline = Twitter.GetHomeTimeline(token, tokenSecret);</strong>
    var grid = new WebGrid(timeline);
}
</pre>
@if (Session["token"] != null) {
    var timeline = Twitter.GetHomeTimeline(Session["token"].ToString(), Session["secret"].ToString());
    var grid = new WebGrid(timeline);
    
    @SampleHelpers.RenderTimelineGrid(grid)                                      
}
else
{
    <div class="message info">
        You're not logged in with twitter, login using the button below.<br/><br/>
        @Twitter.LoginButton(callbackUrl : SampleHelpers.RetrieveCallbackUrl("GetHomeTimeline"))
    </div>
}
